package com.xxxx.protal.pojo;

/**
 * @author lwf
 * @title: Goods
 * @projectName shop
 * @description: TODO
 * @date 2021/1/515:30
 */
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author lwf
 * @since 1.0.0
 */
@Document(indexName = "shop",shards = 5,replicas = 1,createIndex = false)
@Data
public class Goods implements Serializable {
    /**
     * 商品id
     */
    @Id
    private Integer goodsId;
    /**
     * 商品名称
     */
    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String goodsName;
    /**
     * 市场价
     */
    @Field(type = FieldType.Double)
    private BigDecimal marketPrice;
    /**
     * 商品上传原始图
     */
    @Field(type = FieldType.Keyword)
    private String originalImg;
     //高亮名字
    private String googsNameH1;
     //数量
    private Integer goodsNum;
    //日期
    private Date addTime;
}

